package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 版次排程变更历史
 */
@TableName(value = "batch_schedule_history")
@Data
public class BatchScheduleHistory implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("batch_id")
    private Long batchId;

    @TableField("before_plan_start")
    private LocalDateTime beforePlanStart;

    @TableField("before_plan_end")
    private LocalDateTime beforePlanEnd;

    @TableField("after_plan_start")
    private LocalDateTime afterPlanStart;

    @TableField("after_plan_end")
    private LocalDateTime afterPlanEnd;

    private String reason;

    @TableField("operatorId")
    private Long operatorId;

    @TableField("operatorName")
    private String operatorName;

    @TableField("changed_at")
    private LocalDateTime changedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}